From: Eli Zaretskii Date: Sun, 10 Aug 2025 08:45:31 +0000 (+0300) Subject: ; * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Doc fix (bug#79206). X-Git-Tag: archive/raspbian/1%30.2+1-2+rpi1^2~2^2~24^2~6 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22Program/%22http:/www.example.com/cgi/%22https:/%22Program?a=commitdiff_plain;h=4b90b6e7ce9be06087e727f7c6305a2a545660fc;p=emacs.git ; * lisp/emacs-lisp/cl-generic.el (cl-defgeneric): Doc fix (bug#79206). --- diff --git a/lisp/emacs-lisp/cl-generic.el b/lisp/emacs-lisp/cl-generic.el index 3aa26fba3c3..7e0f115ebcb 100644 --- a/lisp/emacs-lisp/cl-generic.el +++ b/lisp/emacs-lisp/cl-generic.el @@ -230,9 +230,11 @@ SPECIALIZERS-FUNCTION takes as first argument a tag value TAG (defmacro cl-defgeneric (name args &rest options-and-methods) "Create a generic function NAME. DOC-STRING is the base documentation for this class. A generic -function has no body, as its purpose is to decide which method body -is appropriate to use. Specific methods are defined with `cl-defmethod'. -With this implementation the ARGS are currently ignored. +function usually has no body, as its purpose is to decide which +method body is appropriate to use; ARGS are currently ignored if +there's no body. If BODY is present, it provides the default +implementation. +Specific implementation methods are defined with `cl-defmethod'. OPTIONS-AND-METHODS currently understands: - (:documentation DOCSTRING) - (declare DECLARATIONS)